package com.autumn.gmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;

/**
 * 主类
 * 1、导入mybatis-plus
 * 2、配置数据源
 * 3、配置nacos
 */
//@SpringBootApplication
//@EnableDiscoveryClient //开启服务发现
//@EnableCircuitBreaker //开启服务熔断
@SpringCloudApplication
@MapperScan("com.autumn.gmall.product.mapper") // 指定mapper扫描包
public class ProductMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductMainApplication.class, args);
    }
}
